package com.csci4448.distributedcomputing;
import com.csci4448.distributedcomputing.R;

import android.app.Service;
import android.app.Service.*;
import android.app.IntentService;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

public class WorkerService extends IntentService {

    private String server_url = null;
    
    public WorkerService() {
        super("WorkerService");
    }

    protected void onHandleIntent(Intent intent) {
        Bundle b = intent.getExtras();

        server_url = b.getString("SERVER_URL");
        CharSequence test = server_url;
 
        Client c = new Client(server_url);
        c.start_computing();
    }

}
